package com.dogborther.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class PhilosopherStatusImagePath implements InitializingBean {
    @Value("${image.philosopher.thinking}")
    private String thinking;
    @Value("${image.philosopher.eating}")
    private String eating;
    @Value("${image.philosopher.hungry}")
    private String hungry;

    public static String THINKING;
    public static String EATING;
    public static String HUNGRY;


    @Override
    public void afterPropertiesSet() throws Exception {
        THINKING = this.thinking;
        EATING = this.eating;
        HUNGRY=this.hungry;
    }
}
